<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
  <link rel="stylesheet" type="text/css" href="../../layui/css/layui.css" />
</head>

<body>
  <div id="app">
    <div class="layui-elem-quote">使用form指令绑定</div>
    <div class="layui-form-pane" v-form="form">
      <input type="text" class="layui-input" name="remark" />
    </div>
    <div> 表单当前的值为:{{form.remark}}</div>
    <br />
    <div class="layui-elem-quote">使用model指令绑定</div>
    <input type="text" class="layui-input" v-model="form.remark" />
  </div>
  <script type="text/javascript" src="../plugin/jquery.min.js"></script>
  <script type="text/javascript" src="../plugin/lodash.min.js"></script>
  <script type="text/javascript" src="../../layui/layui.js"></script>
  <script>
    layui.extend({
      binder: "../../layui_exts/binder/binder",
      vform: "../../layui_exts/binder/vform",
    }).use(['form', 'binder', 'vform'], function () {
      var app = new layui.binder({
        el: "#app",
        data: {
          form: {
            remark: "",
          }
        },
      });
    });
  </script>
</body>

</html>